import Vue from 'vue';
import VueRouter from 'vue-router';
import Home from '../views/Home.vue';

Vue.use(VueRouter);

const routes = [
  {
    path: '/',
    name: 'home',
    component: Home,
  },
  {
    path: '/login',
    name: 'login',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/Login.vue'),
  },
  {
    path: '/registe',
    name: 'registe',
    component: () => import('../views/Registe.vue'),
  },{
    path: '/forget',
    name: 'forget',
    component: () => import('../views/Forget.vue'),
  },
  {
    path: '/mine',
    name: 'mine',
    component: () => import('../views/Mine.vue'),
  },
  {
    path: '/ecode',
    name: 'ecode',
    component: () => import('../views/Ecode.vue'),
  },
  {
    path: '/ccode',
    name: 'ccode',
    component: () => import('../views/Ccode.vue'),
  },
  {
    path: '/withdrawal',
    name: 'withdrawal',
    component: () => import('../views/Withdrawal.vue'),
  },
  {
    path: '/withdetail',
    name: 'withdetail',
    component: () => import('../views/Withdetail.vue'),
  },
  {
    path: '/mteam',
    name: 'mteam',
    component: () => import('../views/Mteam.vue'),
  },
  {
    path: '/steam',
    name: 'steam',
    component: () => import('../views/Steam.vue'),
  },
  {
    path: '/code',
    name: 'code',
    component: () => import('../views/Code.vue'),
  },
];

const router = new VueRouter({
  mode: 'hash',
  base: process.env.BASE_URL,
  routes,
});

export default router;
